<template>
  <div>
  <el-menu router
      default-active="2"
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose"
      background-color="#545c64"
      text-color="#fff"
      active-text-color="#ffd04b">

    <el-submenu index="1">
      <template slot="title">
        <i class="el-icon-user"></i>
        <span>考试</span>
      </template>
      <el-menu-item-group>
        <el-menu-item index="/examss">考试行程</el-menu-item>
        <el-menu-item index="/sscore">查看分数</el-menu-item>
      </el-menu-item-group>
    </el-submenu>
  </el-menu>
  </div>
</template>

<script>
export default {
  name: "Saside",
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>

<style scoped>

</style>